Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle potential nil pointer panic: #274

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

jacobweinstock
Copy link
Member

Description

It possible for opts (*BMCOptions) in NewClientFunc to be nil and cause a panic.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

It possible for opts (*BMCOptions) in NewClientFunc
to be nil and cause a panic.

Signed-off-by: Jacob Weinstock <[email protected]>
Copy link

codecov bot commented Nov 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.

Project coverage is 46.80%. Comparing base (e9d50f1) to head (75ad68a).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
controller/client.go 0.00% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #274      +/-   ##
==========================================
- Coverage   46.97%   46.80%   -0.18%     
==========================================
  Files          11       11              
  Lines        1356     1361       +5     
==========================================
  Hits          637      637              
- Misses        661      666       +5     
  Partials       58       58              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@jacobweinstock jacobweinstock merged commit 8a04fc5 into tinkerbell:main Nov 24, 2024
5 of 7 checks passed
@jacobweinstock jacobweinstock deleted the fix-nil-pointer branch November 24, 2024 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant